package dbModel

import "time"

type OrderStatus int

const (
	_           OrderStatus = iota
	Create                  = 1
	Accept                  = 2
	CancleOrder             = 4
	Handling                = 8
	Sending                 = 16
	Finish                  = 32
	NoFood                  = 64
)

type Order struct {
	Id          int64       `xorm:"id pk" json:"id"`
	FoodId      int64       `xorm:"foodId" json:"foodId,string"`
	Count       int32       `xorm:"count" json:"count"`
	DeskOrderId int64       `xorm:"deskOrderId" json:"deskOrderId,string"`
	Status      OrderStatus `xorm:"status" json:"status"`
	CreateTime  time.Time   `xorm:"createTime" json:"createTime"`
}
